package com.keyroy.game.puzzle_rpg.models.puzzle;

import java.awt.Point;
import java.util.ArrayList;
import java.util.List;

public class Result {
	public List<Point> points = new ArrayList<Point>(3);
	public int index = -1;
	public int direction;
	public TileType tileType;

	public Result(TileType tileType) {
		this.tileType = tileType;
	}

	public final TileType getTileType() {
		return tileType;
	}

	public final void set(int index, int direction) {
		this.index = index - 1;
		this.direction = direction;
	}

	public final Point getPoint() {
		return points.get(index);
	}

	@Override
	public String toString() {
		return points.toString();
	}
}
